const { strict } = require( "jade/lib/doctypes" );
const mongoose = require('../db.js')

// 王佑新用户模型表
const userSchema = new mongoose.Schema({
    title: String,
    fabudate: String,
    celiangdate: String,
    celiangtime: String,
    kehu: String,
    kehuphone: String,
    daogou: String,
    daogouphone: String,
    address: String,
    yuyuedate: String,
    waichudate: String,
    price: Number,
    wandate: String,
    wanweek: String
})
const UserModel = mongoose.model('wyx_user', userSchema, 'wyx_user')

// 登记表模型表
const dengjiSchema = new mongoose.Schema({
    name: String,
    address: String,
    xinxi: String,
    time: String,
})
const DengjiModel = mongoose.model('wyx_dengji', dengjiSchema, 'wyx_dengji')

// 预约表模型表
const yuyueSchema = new mongoose.Schema({
    title: String,
    renwu: String,
    miaoshu: String,
})
const YuyueModel = mongoose.model('wyx_yuyue', yuyueSchema, 'wyx_yuyue')

module.exports ={
    UserModel,
    DengjiModel,
    YuyueModel,
}